package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysCommunity;

/**
 * 小区业务对象 sys_community
 *
 * @author Lion Li
 * @date 2024-05-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysCommunity.class, reverseConvertGenerate = false)
public class SysCommunityBo extends BaseEntity {

    /**
     * 小区ID
     */
    @NotNull(message = "小区ID不能为空", groups = {EditGroup.class})
    private Long communityId;

    /**
     * 小区名称
     */
    @NotBlank(message = "小区名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 小区地址
     */
    @NotBlank(message = "小区地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String address;

    /**
     * 根据定位获取城市编码
     */
    @NotBlank(message = "根据定位获取城市编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String cityCode;

    /**
     * 联系方式
     */
    @NotBlank(message = "联系方式不能为空", groups = {AddGroup.class, EditGroup.class})
    private String tel;

    /**
     * 外部编码
     */
    @NotBlank(message = "外部编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String extCommunityId;

    /**
     * 经度
     */
    private String lat;

    /**
     * 纬度
     */
    private String lng;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
